package com.baizhi.service.impl;

import com.baizhi.dao.UserDAO;
import com.baizhi.dao.impl.UserDAOImpl;
import com.baizhi.entity.User;
import com.baizhi.service.UserService;

public class UserServiceImpl implements UserService {
    @Override
    public User login(String name, String password) {
        UserDAO ud = new UserDAOImpl();
        return ud.selectUserByNameAndPassword(name , password);
    }
}
